Skip to content

Comments

fix: count reduces by 1 for each record deleted#7645

Merged
kwhuber merged 4 commits intomainfrom
issue-7494
Feb 18, 2026
Merged

fix: count reduces by 1 for each record deleted#7645
kwhuber merged 4 commits intomainfrom
issue-7494

Conversation

@kwhuber
Copy link
Contributor

@kwhuber kwhuber commented Jan 13, 2026

Fixes #7494
Fixes #4988

This fix continues a change from pr-7635 to fix a UI issue when a user deletes records through the query builder. Prior to the change, the results header in the returned query would delete records two at a time. This happened because handleDelete was being called twice, hence the need for the deletingRef tracking set.

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list
  • Add automated tests
  • Add a reverse migration if a migration is present in the PR

Testing instructions

  • Create a query with at least 2 records
  • Delete all the records that show up
  • Verify that the results count decreases by 1 following each removal
  • Verify that the results count is zero and non-negative once all records are deleted

@kwhuber kwhuber added this to the 7.12.0 milestone Jan 13, 2026
@kwhuber kwhuber requested review from a team and grantfitzsimmons January 13, 2026 20:56
@github-project-automation github-project-automation bot moved this to 📋Back Log in General Tester Board Jan 13, 2026
@kwhuber
Copy link
Contributor Author

kwhuber commented Jan 13, 2026

@grantfitzsimmons This pr accounts for the negative issue in addition to the duplicate delete issue. May I close pr-7635 to avoid duplicate fixes?

Copy link
Collaborator

@emenslin emenslin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Create a query with at least 2 records
  • Delete all the records that show up
  • Verify that the results count decreases by 1 following each removal
  • Verify that the results count is zero and non-negative once all records are deleted

Looks good!

01-14_11.34.mp4

@emenslin emenslin requested a review from a team January 14, 2026 17:36
Copy link
Contributor

@Iwantexpresso Iwantexpresso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Create a query with at least 2 records
  • Delete all the records that show up
  • Verify that the results count decreases by 1 following each removal
  • Verify that the results count is zero and non-negative once all records are deleted

nice job!

@CarolineDenis CarolineDenis modified the milestones: 7.12.0, 7.13.0 Jan 27, 2026
@grantfitzsimmons grantfitzsimmons requested a review from a team January 30, 2026 17:43
Copy link
Collaborator

@combs-a combs-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Create a query with at least 2 records
  • Delete all the records that show up
  • Verify that the results count decreases by 1 following each removal
  • Verify that the results count is zero and non-negative once all records are deleted

Tested on sdnhmherps, looks good to me. Decrementing as expected. Good job! 👍

@bhumikaguptaa bhumikaguptaa self-requested a review February 16, 2026 19:16
Copy link
Collaborator

@bhumikaguptaa bhumikaguptaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Create a query with at least 2 records
  • Delete all the records that show up
  • Verify that the results count decreases by 1 following each removal
  • Verify that the results count is zero and non-negative once all records are deleted

Works as expected.

Copy link
Member

@grantfitzsimmons grantfitzsimmons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a UX review:

  • Create a query with at least 2 records
  • Delete all the records that show up
  • Verify that the results count decreases by 1 following each removal
  • Verify that the results count is zero and non-negative once all records are deleted

👍

@kwhuber kwhuber modified the milestones: 7.13.0, 7.12.0 Feb 18, 2026
@kwhuber kwhuber merged commit dd06c63 into main Feb 18, 2026
14 checks passed
@kwhuber kwhuber deleted the issue-7494 branch February 18, 2026 19:53
@github-project-automation github-project-automation bot moved this from 📋Back Log to ✅Done in General Tester Board Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Count goes down by 2 when deleting only 1 record from 'browse in forms' Querying and deleting all results makes the results show as -1

7 participants